package com.lxw.weather.model;

import android.os.Parcel;
import android.os.Parcelable;

public class DailyForecast implements Parcelable {
    private String date;
    private String dayTemp;
    private String nightTemp;
    private String dayWeather;
    private String dayWindDirection;
    private String nightWindDirection;
    private String dayWeatherPic;
    private String nightWeatherPic;

    public DailyForecast() {
    }

    public String getDate() { return date; }
    public void setDate(String date) { this.date = date; }
    
    public String getDayTemp() { return dayTemp; }
    public void setDayTemp(String dayTemp) { this.dayTemp = dayTemp; }
    
    public String getNightTemp() { return nightTemp; }
    public void setNightTemp(String nightTemp) { this.nightTemp = nightTemp; }
    
    public String getDayWeather() { return dayWeather; }
    public void setDayWeather(String dayWeather) { this.dayWeather = dayWeather; }
    
    public String getDayWindDirection() { return dayWindDirection; }
    public void setDayWindDirection(String dayWindDirection) { this.dayWindDirection = dayWindDirection; }
    
    public String getNightWindDirection() { return nightWindDirection; }
    public void setNightWindDirection(String nightWindDirection) { this.nightWindDirection = nightWindDirection; }
    
    public String getDayWeatherPic() { return dayWeatherPic; }
    public void setDayWeatherPic(String dayWeatherPic) { this.dayWeatherPic = dayWeatherPic; }
    
    public String getNightWeatherPic() { return nightWeatherPic; }
    public void setNightWeatherPic(String nightWeatherPic) { this.nightWeatherPic = nightWeatherPic; }

    protected DailyForecast(Parcel in) {
        date = in.readString();
        dayTemp = in.readString();
        nightTemp = in.readString();
        dayWeather = in.readString();
        dayWindDirection = in.readString();
        nightWindDirection = in.readString();
        dayWeatherPic = in.readString();
        nightWeatherPic = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(date);
        dest.writeString(dayTemp);
        dest.writeString(nightTemp);
        dest.writeString(dayWeather);
        dest.writeString(dayWindDirection);
        dest.writeString(nightWindDirection);
        dest.writeString(dayWeatherPic);
        dest.writeString(nightWeatherPic);
    }

    public static final Creator<DailyForecast> CREATOR = new Creator<DailyForecast>() {
        @Override
        public DailyForecast createFromParcel(Parcel in) {
            return new DailyForecast(in);
        }

        @Override
        public DailyForecast[] newArray(int size) {
            return new DailyForecast[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }
}